#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QFileSystemWatcher>

QT_BEGIN_NAMESPACE
namespace Ui {
class Widget;
}
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private:
    void on_fileChanged(const QString &path);
    void on_directoryChanged(const QString &path);

private slots:
    void on_but_add_file_clicked();

    void on_but_add_path_clicked();

    void on_but_remove_clicked();

    void on_but_show_clicked();

private:
    Ui::Widget *ui;

    QFileSystemWatcher m_watcher;
};
#endif // WIDGET_H
